import request from '@/utils/request'

// 查询
export function getCheckLeave(data, offset, limit) {
  return request({
    url: '/leave',
    method: 'get',
    params: {
      begin: data.begin,
      end: data.end,
      status: data.status,
      offset: offset,
      limit: limit
    }
  })
}
export function getCheckOvertime(data, offset, limit) {
  return request({
    url: '/overtime/checkOvertime',
    method: 'get',
    params: {
      begin: data.begin,
      end: data.end,
      status: data.status,
      offset: offset,
      limit: limit
    }
  })
}
export function getCheckComplement(data, offset, limit) {
  return request({
    url: '/checkWork/checkComplement',
    method: 'get',
    params: {
      begin: data.begin,
      end: data.end,
      status: data.status,
      offset: offset,
      limit: limit
    }
  })
}

// 审核申请
export function check(data) {
  return request({
    url: `/checkWork/check`,
    method: 'put',
    data
  })
}
